<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<League>" %>
<%@ Import Namespace="TeamCommunitySolution.Domain.DataLayer.Leagues"%>
<div id="TeamSearch">
    <h2>
        <%= Html.Encode(Model.Name) %></h2>
    <h3>
        Search for teams:</h3>
    <div style="margin-top: 10px;">
        <fieldset>
            <legend>Invite</legend>
        <label for="ToTeam">
            To:</label>
        <%= Html.TextBox("ToTeam") %>
        <%= Html.ValidationMessage("ToTeam", "*") %><br />
        <label for="InviteMessage">
            Message:</label>
        <%= Html.TextArea("InviteMessage","Join my league now!") %>
        <%= Html.Hidden("LeagueId", Model.Id) %>
        </fieldset>
    </div>
</div>